<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
  <tr>
    <td width="3%" align="left" ><img src="{tpl_path}images/forward.jpg" /></td>
    <td width="97%" align="left" >您现在的位置：<a href="<?php echo site_url(CTL_FOLDER."imessage");?>">IM账号列表</a> &gt; IM修改</td>
  </tr>
</table>
<fieldset>
<legend>IM修改</legend>
<form action="<?php echo site_url(CTL_FOLDER."imessage/save_record");?>" method="post" name="dialog_edit_form" id="dialog_edit_form">
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" >
  <tr>
        <td width="167"><font color="#FF0000">*</font>选择IM 类型：</td>
        <td width="564"><select name="catalog_id" id="catalog_id" dataType="Require" msg="该项必须选择">
                <?php foreach($catalog_list as $row) {?>
                <option value="<?php echo $row->id;?>" <?php if($row->id==$edit_data['catalog_id']) echo "selected";?>><?php echo $row->cat_name;?></option>
                <?php }?>
              </select>
              &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo site_url(CTL_FOLDER."imessage_catalog");?>">添加IM类型</a>
              </td>
      </tr>
    <tr>
        <td width="152"><font color="#FF0000">*</font>自定义称谓：</td>
      <td width="577"><input Name="title" type="text" Id="title" size="10" value="<?php echo $edit_data['title'];?>" dataType="Require" msg="该项必须填写"  title="例如：陈小姐">
      </td>
    </tr>
      <tr>
        <td width="167"><font color="#FF0000">*</font>IM号码：</td>
        <td width="564"><input Name="user_id" value="<?php echo $edit_data["user_id"];?>" type="text" Id="user_id" size="20" dataType="Require" msg="该项必须填写" title="比方您的QQ号码">
        </td>
      </tr>
      <tr>
      <td><font color="#FF0000">*</font>排序号：</td>
      <td><input name="seqorder" type="text" id="seqorder" size="4" value="<?php echo $edit_data['seqorder'];?>"  datatype="Integer" msg="该项必须填写数字" />
      </td>
    </tr>
  </table>
  <input name="rd_id" type="hidden" value="<?php echo $edit_data['id'];?>" />
  <input type="button" name="sbmit" style=" margin-left:160px; margin-bottom:10px; margin-top:10px" onclick="subForm(this.form,this)" value="修改" class="button-style2" />
</form>
</fieldset>
<?php $this->load->view(TPL_FOLDER."footer");?>